function foo() {
  var name = "why";
  var age = 15;

  function bar() {
    console.log(`name`, name);
    console.log(`age`, age);
  }
  return bar;
}

var fn = foo();
fn();
